#ifndef CARMAINWINDOW_H
#define CARMAINWINDOW_H

#include <QMainWindow>
#include "image.h"
#include "http.h"
#include <QTime> //时间
#include <QTimer> //定时器
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QThread>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include "framelesswidget.h"
#include <QTcpSocket>
#include <setvipdata.h>
namespace Ui {
class CarMainWindow;
}

class CarMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit CarMainWindow(QWidget *parent = nullptr);
    ~CarMainWindow();
 QString  identifyCarid();

public:
    QTcpSocket *m_tcpSocket;
private slots:
    void onUpdateTime();//时间

    void on_btn_start_clicked();//车辆进场

    void on_btn_stop_clicked();//车辆离场
    void on_btn_start_2_clicked();//发送数据进行拍照

    void on_btn_stop_2_clicked();//会员结账

public slots:
     void onConnected();//接收数据
     void onRecvDataSlot();//接收服务器图片并显示

private:
    Ui::CarMainWindow *ui;

    QTime tm;
    QString fileName;
    QString accessToken;
    QTimer m_timer;
   QString imageContent;
    QByteArray imgeData;



};

#endif // CARMAINWINDOW_H
